const horizontal = {
  path: '/horizontal',
  type:'horizontal',
  name: 'index',
  component: () =>
    import( /* webpackChunkName: "about" */ '@/views/main.vue'),
  children: [
    {
      path: 'components',
      name: 'components',
      component: () =>
        import( /* webpackChunkName: "about" */ '@/views/components.vue'),
      meta: {
        name: '组件库',
      }
    },
    {
      path: 'demo1',
      name: 'demo1',
      component: () =>
        import( /* webpackChunkName: "about" */ '@/views/demo1.vue'),
      meta: {
        name: 'demo1'
      }
    },
    {
      path: 'demo2',
      name: 'demo2',
      component: () =>
        import( /* webpackChunkName: "about" */ '@/views/demo2.vue'),
      meta: {
        name: 'demo2',
      }
    },
    {
      path: 'demo3',
      name: 'demo3',
      component: () =>
        import( /* webpackChunkName: "about" */ '@/views/demo3.vue'),
      meta: {
        name: '表格合并及打印功能',
      }
    },
    {
      path: 'demo4',
      name: 'demo4',
      component: () =>
        import( /* webpackChunkName: "about" */ '@/views/demo4.vue'),
      meta: {
        name: '上传下载功能'
      }
    },
    {
      path: 'x6Demo',
      name: 'x6Demo',
      component: () =>
        import( /* webpackChunkName: "about" */ '@/views/X6Show.vue'),
      meta: {
        name: 'X6Show',
        home:true,
      }
    },
    {
      path: '404',
      component: () => import('@/views/tip-page/404.vue'),
      hidden: true
    },
// 404 page must be placed at the end !!!
    { path: '*', redirect: '/horizontal/404', hidden: true }
  ]
}

export default horizontal
